package com.h.forum.dao;

import com.h.forum.pojo.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * 按照用户名查询对应的用户信息
     * @param userName
     * @return
     */
    User selectByUserName(@Param("userName") String userName);
}